package cn.iocoder.yudao.module.energy.controller.admin.data.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 能耗数据 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DataRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "7894")
    @ExcelProperty("主键ID")
    private Long id;

    @Schema(description = "设备ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19251")
    @ExcelProperty("设备ID")
    private String deviceId;

    @Schema(description = "设备名称", example = "芋艿")
    @ExcelProperty("设备名称")
    private String deviceName;

    @Schema(description = "数据时间戳", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("数据时间戳")
    private LocalDateTime timestamp;

    @Schema(description = "电压(V)")
    @ExcelProperty("电压(V)")
    private BigDecimal voltage;

    @Schema(description = "电流(A)")
    @ExcelProperty("电流(A)")
    private BigDecimal currents;

    @Schema(description = "功率(kW)")
    @ExcelProperty("功率(kW)")
    private BigDecimal activePower;

    @Schema(description = "累计能耗(kWh)")
    @ExcelProperty("累计能耗(kWh)")
    private BigDecimal energyConsumption;

    @Schema(description = "设备温度(℃)")
    @ExcelProperty("设备温度(℃)")
    private BigDecimal temperature;

    @Schema(description = "状态", example = "1")
    @ExcelProperty("状态")
    private String status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}